package com.nightpiter.model.objects;

/**
 * Transfer class
 * 
 * @author Eldar Abusalimov (eldar.abusalimov@gmail.com)
 */
public class Transfer extends Transition {
	/**
	 * the Hub part of which Transfer is
	 */
	private Hub hub;

	/**
	 * public constructor
	 * 
	 * @param fromStation
	 * @param toStation
	 * @param time -
	 *            time between fromStation and toStation in seconds
	 * @param hub -
	 *            Transfer hub
	 */
	public Transfer(Station fromStation, Station toStation, int time) {
		super(fromStation, toStation, time);
	}

	/**
	 * @return the hub
	 */
	public Hub getHub() {
		return hub;
	}

	/**
	 * @param hub
	 *            the hub to set
	 */
	void setHub(Hub hub) {
		this.hub = hub;
	}

}
